package com.fjl.singleton;

public class SingletonTest {
	private static volatile SingletonTest singletonTest;
	private SingletonTest (){

	}
	public static SingletonTest getSingletonTest(){
		if (singletonTest==null)
			synchronized (SingletonTest.class){
				if (singletonTest==null){
					singletonTest=new SingletonTest();
				}
			}
		return singletonTest;
	}
}
